package com.lc.hongtai.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

import java.util.List;

/**
 * Created by Administrator on 4/20/2016.
 */
@HttpInlet("index/aqbz")
public class JsonSectuty extends HYAsyGet<JsonSectuty.Info> {

    public String access_token;

    public JsonSectuty(AsyCallBack<Info> asyCallBack) {
        super(asyCallBack);
    }
/*
    public JsonSectuty(String access_token, AsyCallBack<Info> asyCallBack) {
        super(asyCallBack);
        this.access_token = access_token;
    }*/

    @Override
    protected Info parser(JSONObject object) {
        Gson gson = new Gson();

        Log.d(object.toString(),"aaaaaaaaaaaaaaaaaaa");

        Info info = new Info();
        info = gson.fromJson(object.toString(), Info.class);

        return info;
    }

    public static class Info {
       public List<Banner> banner;


    }

    public static class Banner {
        public String title;
        public String img;
        public String url;
    }


}

